//
//	SSCommentColorModel.swift
//
//	Create by 松 松 on 20/5/2019
//	Copyright © 2019. All rights reserved.
//	Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport

import Foundation
import SSComment


public class SSCommentColorModel : NSObject, NSCoding, SSMap{

    //评论名字的颜色
    public var commentNameColor = "#000000"
    //时间的颜色
    public var timeColor = "#000000"
    //评论内容的颜色
    public var commentContentColor = "#000000"
    //回复名字的颜色
    public var replayNameColor = "#000000"
    //回复内容的颜色
    public var replayContentColor = "#000000"
    //回复背景颜色
    public var replayBGColor = "#DCDCDC"
    //按钮颜色
    public var iconColor = "#000000"
    //按钮背景颜色
    public var iconBGColor = "#FFFFFF"
    //点赞默认颜色
    public var likeNormalColor = "#FFA500"
    //点赞之后的颜色
    public var likeSelectedColor = "#FFA500"
    //标题颜色
    public var titleColor = "#000000"
    //标签默认颜色
    public var labelNormalColor = "#000000"
    //标签选中颜色
    public var labelSelectedColor = "#000000"
    //悬浮头背景颜色
    public var headerBGColor = "#DCDCDC"
    //悬浮头字体颜色
    public var headerTextColor = "#000000"
    //刷新的字体颜色
    public var refreshTextColor = "#000000"
    //背景颜色
    public var bgColor = "#FFFFFF"

    //是否弹出
    public var pop = false
    //点赞和评论数量的默认颜色
    public var numNormalColor = "#000000"
    //点赞和评论数量的选中颜色
    public var numSelectColor = "#000000"

    let s = #colorLiteral(red: 0.3411764801, green: 0.6235294342, blue: 0.1686274558, alpha: 1)
    override public init() {
        
    }

	/**
	 * Instantiate the instance using the passed dictionary values to set the properties values
	 */
    required public init(fromDictionary dictionary: [String:Any]){
		bgColor = dictionary["bgColor"] as! String
		commentContentColor = dictionary["commentContentColor"] as! String
		commentNameColor = dictionary["commentNameColor"] as! String
		headerBGColor = dictionary["headerBGColor"] as! String
		headerTextColor = dictionary["headerTextColor"] as! String
		iconBGColor = dictionary["iconBGColor"] as! String
		iconColor = dictionary["iconColor"] as! String
		labelNormalColor = dictionary["labelNormalColor"] as! String
		labelSelectedColor = dictionary["labelSelectedColor"] as! String
		likeNormalColor = dictionary["likeNormalColor"] as! String
		likeSelectedColor = dictionary["likeSelectedColor"] as! String
		refreshTextColor = dictionary["refreshTextColor"] as! String
		replayBGColor = dictionary["replayBGColor"] as! String
		replayContentColor = dictionary["replayContentColor"] as! String
		replayNameColor = dictionary["replayNameColor"] as! String
		timeColor = dictionary["timeColor"] as! String
		titleColor = dictionary["titleColor"] as! String
        pop = dictionary["pop"] as! Bool
        numNormalColor = dictionary["numNormalColor"] as? String ?? "#000000"
        numSelectColor = dictionary["numSelectColor"] as? String ?? "#000000"
	}

	/**
	 * Returns all the available property values in the form of [String:Any] object where the key is the approperiate json key and the value is the value of the corresponding property
	 */
    public func toDictionary() -> [String:Any]
	{
		var dictionary = [String:Any]()
		dictionary["bgColor"] = bgColor
		dictionary["commentContentColor"] = commentContentColor
		dictionary["commentNameColor"] = commentNameColor
		dictionary["headerBGColor"] = headerBGColor
		dictionary["headerTextColor"] = headerTextColor
		dictionary["iconBGColor"] = iconBGColor
		dictionary["iconColor"] = iconColor
		dictionary["labelNormalColor"] = labelNormalColor
		dictionary["labelSelectedColor"] = labelSelectedColor
		dictionary["likeNormalColor"] = likeNormalColor
		dictionary["likeSelectedColor"] = likeSelectedColor
		dictionary["refreshTextColor"] = refreshTextColor
		dictionary["replayBGColor"] = replayBGColor
		dictionary["replayContentColor"] = replayContentColor
		dictionary["replayNameColor"] = replayNameColor
		dictionary["timeColor"] = timeColor
		dictionary["titleColor"] = titleColor
        dictionary["pop"] = pop
        dictionary["numNormalColor"] = numNormalColor
        dictionary["numSelectColor"] = numSelectColor
		return dictionary
	}


    /**
    * NSCoding required initializer.
    * Fills the data from the passed decoder
    */
    @objc required public init(coder aDecoder: NSCoder)
	{
         bgColor = aDecoder.decodeObject(forKey: "bgColor") as! String
         commentContentColor = aDecoder.decodeObject(forKey: "commentContentColor") as! String
         commentNameColor = aDecoder.decodeObject(forKey: "commentNameColor") as! String
         headerBGColor = aDecoder.decodeObject(forKey: "headerBGColor") as! String
         headerTextColor = aDecoder.decodeObject(forKey: "headerTextColor") as! String
         iconBGColor = aDecoder.decodeObject(forKey: "iconBGColor") as! String
         iconColor = aDecoder.decodeObject(forKey: "iconColor") as! String
         labelNormalColor = aDecoder.decodeObject(forKey: "labelNormalColor") as! String
         labelSelectedColor = aDecoder.decodeObject(forKey: "labelSelectedColor") as! String
         likeNormalColor = aDecoder.decodeObject(forKey: "likeNormalColor") as! String
         likeSelectedColor = aDecoder.decodeObject(forKey: "likeSelectedColor") as! String
         refreshTextColor = aDecoder.decodeObject(forKey: "refreshTextColor") as! String
         replayBGColor = aDecoder.decodeObject(forKey: "replayBGColor") as! String
         replayContentColor = aDecoder.decodeObject(forKey: "replayContentColor") as! String
         replayNameColor = aDecoder.decodeObject(forKey: "replayNameColor") as! String
         timeColor = aDecoder.decodeObject(forKey: "timeColor") as! String
         titleColor = aDecoder.decodeObject(forKey: "titleColor") as! String
        pop = aDecoder.decodeObject(forKey: "pop") as! Bool
        numNormalColor = aDecoder.decodeObject(forKey: "numNormalColor") as! String
        numSelectColor = aDecoder.decodeObject(forKey: "numSelectColor") as! String

	}

    /**
    * NSCoding required method.
    * Encodes mode properties into the decoder
    */
    @objc public func encode(with aCoder: NSCoder)
	{
		aCoder.encode(bgColor, forKey: "bgColor")
		aCoder.encode(commentContentColor, forKey: "commentContentColor")
        aCoder.encode(commentNameColor, forKey: "commentNameColor")
        aCoder.encode(headerBGColor, forKey: "headerBGColor")
        aCoder.encode(headerTextColor, forKey: "headerTextColor")
        aCoder.encode(iconBGColor, forKey: "iconBGColor")
        aCoder.encode(iconColor, forKey: "iconColor")
        aCoder.encode(labelNormalColor, forKey: "labelNormalColor")
        aCoder.encode(labelSelectedColor, forKey: "labelSelectedColor")
        aCoder.encode(likeNormalColor, forKey: "likeNormalColor")
        aCoder.encode(likeSelectedColor, forKey: "likeSelectedColor")
        aCoder.encode(refreshTextColor, forKey: "refreshTextColor")
        aCoder.encode(replayBGColor, forKey: "replayBGColor")
        aCoder.encode(replayContentColor, forKey: "replayContentColor")
        aCoder.encode(replayNameColor, forKey: "replayNameColor")
        aCoder.encode(timeColor, forKey: "timeColor")
        aCoder.encode(titleColor, forKey: "titleColor")
        aCoder.encode(pop, forKey: "pop")
        aCoder.encode(numNormalColor, forKey: "numNormalColor")
        aCoder.encode(numSelectColor, forKey: "numSelectColor")
	}

}
